package com.guojian.common.utils;

import org.apache.commons.lang.StringUtils;

public class Assert {

	public static void isTrue(final boolean cond, final String message) {
		if (cond) {
			throw new IllegalArgumentException(message);
		}
	}

	public static void isBlank(final String cond, final String message) {
		if (StringUtils.isBlank(cond)) {
			throw new IllegalArgumentException(message);
		}
	}

}
